<?PHP
include_once("../classes.php");
@session_start();
$_chat	= new chat();
$_chat->nome		= $_SESSION["chat"]["nome"];
$_chat->email		= $_SESSION["chat"]["email"];
$_chat->id			= $_GET["id"];


$sair = $_chat->sair();

if($sair == true){
$_SESSION["chat"]["entrou"] 	= 0;
unset($_SESSION["chat"]["id"]);	
header("Location: ../index.php?vendedor=".$_GET["vendedor"]."");

}else{

header("Location: ../index.php?vendedor=".$_GET["vendedor"]."&erro=1");

}

?>